/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f6fa;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px;
}

/* 顶部导航栏 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #f5f6fa;
}

.title-input {
    font-size: 18px;
    border: none;
    outline: none;
    padding: 8px 12px;
    border-radius: 6px;
    width: 300px;
    transition: all 0.3s ease;
}

.title-input:focus {
    background: #f5f6fa;
}

.save-btn {
    padding: 8px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.save-btn:active {
    transform: translateY(0);
}

/* 笔记信息区域 */
.note-info {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-group label {
    font-size: 14px;
    color: #7f8c8d;
}

.info-group input,
.info-group select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.info-group input:focus,
.info-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

/* Markdown 编辑器区域 */
.editor-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* EasyMDE 编辑器自定义样式 */
.editor-section .EasyMDEContainer {
    border: none;
}

.editor-section .CodeMirror {
    border: none;
    border-radius: 6px;
    padding: 10px;
}

.editor-section .editor-toolbar {
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        padding-top: 70px;
    }

    .title-input {
        width: 200px;
    }

    .info-row {
        flex-direction: column;
        gap: 15px;
    }

    .save-btn {
        padding: 8px 15px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-wrapper {
    animation: fadeIn 0.5s ease-out;
} 